﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Push.Remoting;

namespace K9Cloud.Admin.Test
{
    [ApiExplorerSettings(IgnoreApi = true)]
    [ApiController]
    [Route("test/[action]")]
    public class TestController: ControllerBase
    {
        private readonly ILogger<TestController> _logger;

        public TestController(ILogger<TestController> logger)
        {
            _logger = logger;
        }

        public string Log(int length, [FromServices] VerificationService.VerificationServiceClient client)
        {
            client.Sms(new SmsRequest());

            return "ok";
        }
    }
}